Is there a way to allow `<?php` and `<?=` open tag but not `<?` ?

Posted by p4bl0 on Server Fault See other posts from Server Fault or by p4bl0
Published on 2010-04-08T18:56:10Z Indexed on 2010/04/08 19:03 UTC
Read the original article Hit count: 239

Filed under:
|

In PHP I would like to be able to use the <?= open tag (which is similar in effect to <?php echo) but I would also like to disallow the use of the short open tag for any other use than quickly echo stuff.

Is that possible? If it is, how could I achive this? I tried searching serverfault and Google and nothing came up.

Thanks.

© Server Fault or respective owner

Related posts about php

Related posts about php.ini